#include"HttpServer.hpp"
#include<memory>


void Usage(std::string arg) {
    std::cout << arg << " Port" << std::endl;
    LOG(FATAL, "need port");
}
int main(int argc, char** argv)
{
  if (argc != 2) {
     Usage(argv[0]);
     exit(4);
  }
  std::shared_ptr<HttpServer> Hs (new HttpServer(atoi(argv[1])));
  Hs->InitHttpServer();
  Hs->Loop();

  return 0;
}
